<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
	.divcss{
		width: 30px;
		height: 30px;
		background-color: red;
	}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $.get("ajaxtest.txt",function(data,status){
      alert("数据：" + data + "\n状态：" + status);
    });
    $("div").addClass("divcss");
    alert(eval("x=10;y=20;x*y"));
  });
});

function arrayTest(){
	var array1 = new Array();
	for(i = 0; i < 10; i++){
		array1[i]=i*10;
	}
	var array2 = new Array();
	for(i = 0; i < 10; i++){
		array2[i]=i*20;
	}
	alert(array1.concat(array2));
}

</script>
</head>
<body>

<button>向页面发送 HTTP GET 请求，然后获得返回的结果</button>

<div></div>
<div id="div2"></div>
</body>
<button onclick="arrayTest();">button</button>
</html>
